﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{
    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsDoorRoomRela _iCsDoorRoomRela = null;

        public static ICsDoorRoomRela CreateCsDoorRoomRela()
        {
            if (_iCsDoorRoomRela == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.HomeInspection.TbCsDoorRoomRela_Sys";
                _iCsDoorRoomRela = (ICsDoorRoomRela)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsDoorRoomRela;
        }
    }

    public interface ICsDoorRoomRela
    {
        bool UpdateDoorRoomRelaData(DataTable dt);
        DataTable GetDoorRoomRelaData();
    }
}
